package wh.products;

import wh.exceptions.BadIDFormat;
import wh.exceptions.IDCollisionException;
import wh.exceptions.InvalidValueException;

public class SSD extends StorageDisk // Solid-State Drive
{
	
	private int iops; // Input/Output Operations Per Second
	private String cellLevel;
	private boolean hasTRIM; // An optimization for operating systems for SSDs
	
	public SSD(String productID, double price, int inStock, String subType, String manufacturer, String series,
			String productName, int capacity, String busInterface, int mtbf, 
			int iops, String cellLevel, boolean hasTRIM) throws BadIDFormat, IDCollisionException, InvalidValueException 
	{
		super(productID, price, inStock, subType, manufacturer, series, productName, capacity, busInterface, mtbf);
		
		this.iops = iops;
		this.cellLevel = cellLevel;
		this.hasTRIM = hasTRIM;
		
	}
	
	public int getIOPS() {
		return iops;
	}
	
	public String getCellLevel() {
		return cellLevel;
	}
	
	public boolean hasTRIM() {
		return hasTRIM;
	}
	
}
